{include file="public/header"}
<body>
<div class="layui-fluid">
    <div class=" layui-card">
        <div class="layui-card-header">添加频道</div>
        <div class="layui-card-body">
            <div class="layui-form layui-form-pane" lay-filter="layuiadmin-form-admin" id="layuiadmin-form-admin"
                 style="padding: 20px;">
                <div class="layui-form-item">
                    <label class="layui-form-label">频道名称</label>
                    <div class="layui-input-inline">
                        <input type="text" name="title" lay-verify="required" placeholder="如 文章模型" autocomplete="off"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">控制器名称</label>
                    <div class="layui-input-inline">
                        <input type="text" name="ctl_name" lay-verify="required" placeholder="控制器名称 区分大小写" autocomplete="off"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">频道标识</label>
                    <div class="layui-input-inline">
                        <input type="text" name="flag" lay-verify="required" placeholder="如 article" autocomplete="off"
                               class="layui-input">
                    </div>
                    <div class="layui-form-mid layui-word-aux">
                        与文档的模板相关连，建议由小写字母、数字组成，因为部份Unix系统无法识别中文文件。
                        列表模板是：lists_模型标识.html
                        文档模板是：view_模型标识.html</div>
                </div>

                <div class="layui-form-item layui-hide">
                    <input type="hidden" name="id">
                    <input type="button" lay-submit lay-filter="channel-edit" id="channel-edit" class="layui-btn layui-btn-normal"
                           value="确认">
                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/common"}
<script>
    layui.config({
        base: '/static/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'form', 'admin', 'element'], function () {
        var $ = layui.$
            , form = layui.form, admin = layui.admin, layer = layui.layer;
        var info = {:json_encode($info)};
        form.val("layuiadmin-form-admin", info);
        form.render();
    })
</script>
</body>
</html>